package com.qfedu.aunt.commons.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qfedu.aunt.commons.pojo.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author xiaobobo
 * @since 2022-10-26
 */
public interface OrdersService extends IService<Orders> {
    /**
     * 通过城市民资订单分类 分页查询订单数据
     * @param cityName
     * @param orderType
     * @param currentPage
     * @param pageSize
     * @return
     */
    IPage<Orders> findOrdersByCityNameAndType(String cityName, String orderType, Integer currentPage, Integer pageSize)throws Exception;

    /**
     * 通过城市名字获取最新的订单信息
     * @param cityName
     * @param currentPage
     * @param pageSize
     * @return
     */
    IPage<Orders> findOrdersByCityName(String cityName, Integer currentPage, Integer pageSize);
}
